package com.kristin.register;

import com.kristin.register.Url;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName RegisterCenter
 * @Description TODO
 * @Author Kristin
 * @Date 2021/06/23 15:01:12
 * @Version 1.0.0
 */
public class RegisterCenter {

    private static Map<String, Map<Url, String>> registerCenter = new HashMap<String, Map<Url, String>>();

    /**
     * 注册中心注册
     * @param interfaceForName 服务名称
     * @param url 服务的IP和端口
     * @param implClass 服务的实现类的全类名
     */
    public static void register(String interfaceForName, Url url, String implClassName) {
        Map<Url, String> map = new HashMap<Url, String>();
        map.put(url, implClassName);
        registerCenter.put(interfaceForName, map);
    }

}
